Dissociative and non-dissociative photoionization of molecular fluorine from inner and valence shells