Analysis and Design of a DPSK Optical Heterodyne Receiver in the Presence of Laser Phase Noise and Frequency Detuning