Rangers buy out contract of veteran Brad Richards