AGC optical receiver for fiber-to-the-home networks