Energy dependence of the optical model parameters for 3He ions scattered from 40Ca and 58Ni