Mechanistic studies on the photochemical reactions of isoxazoles