Theory of a two-photon laser amplifier