Doppler effect and frequency shift