Exact theory of multiphoton processes and four-photon squeezed states via nonlinear canonical transformations