Effects of uniaxial stress and electric fields on localized vibrational modes of H- and D- ions in CaF2