Carrier phase and frequency estimation for burst-mode communications