Fe and Ni AB initio effective potentials for use in molecular calculations