Phase measurement of light propagating in a linearly accelerating rigid-mirror system