Molecular effects in K-shell ionization of fluorine