Quantum theory analysis of loss effects in guided nonlinear-optic twin-photon generation