The interacting boson model: Microscopic calculations for the mercury isotopes