Why is the Doppler effect important for astronomy?