Quantum noise and excess noise in optical homodyne and heterodyne receivers