Two- and three-quasiparticle states in the interacting boson model and a unified description of even- and odd- mass Hg isotopes