Inelastic proton scattering (I). Ar40 and Ca40