Hamiltonian dynamics of parametric nonlinear wave mixing