Inelastic electron scattering from Ca40 in the giant resonance region