Electron scattering in the interacting boson model