Synchrotron radiation study of photoionization and photodissociation processes of O2 in the 12-26 eV region