Charge and transition densities of samarium isotopes in the interacting boson modei