Elastic and inelastic scattering of high-energy electrons in the cluster model