Nonadiabatic processes involving three electronic states. I. Branch cuts and linked pairs of conical intersections