Description of the Pt and Os isotopes in the interacting boson model