A quantum model for optically amplified nonlinear transmission systems