Mechanism of the photoisomerization of isoxazoles and 2-cyanophenol to oxazoles