Description of the even-mass Hg and Pt isotopes by a microscopic collective hamiltonian