Generalization of the phase method to multi-channel potential scattering