Partitioned general linear methods for separable Hamiltonian problems