The charges carried by fast nitrogen, oxygen and fluorine ions passing through matter