Transition metal impurities in fluorides: Role of electronic structure of fluorine on spectroscopic properties