Inelastic electron scattering in the generalized collective model