Conical intersections coupled to an environment