Modelling of potential energy surfaces for photochemistry: conical intersections and application to optical control