All-optical feedback gain control of remote optically pumped amplifiers