Geometric Hamiltonian formulation of quantum mechanics in complex projective spaces