Harmonic Analysis in Systems Using Phase Sensitive Detectors