Ab initio calculations of the Franck-Condon factors for ionization of HF and DF in the X 2Pi and A 2Sigma+ states