Hamiltonian formulation for the Jaulent-Miodek family of nonlinear evolution equations