How Is The Doppler Effect Used In Astronomy