For the Doppler effect to occur what has to happen?