Energy dependence of the optical model parameters for α-particles scattered from 40Ca and 58Ni