Conical intersections of three states: Energies, derivative couplings, and the geometric phase effect in the neighborhood of degeneracy subspaces. Application to the allyl radical