Dissociation of O2 induced by selective K-shell excitation