The degenerate parametric amplifier in a cavity and the unitary transformation which generates the external field