Surface crossings and surface touchings in photochemistry