The optical potential in the scattering of hydrogen and deuterium atoms from LiF and NaF (001)