Theory of parametric amplification in coupled lossy waveguides