Potential energy surface crossings in organic photochemistry