A balanced mixer for optical heterodyning: The ANN detector