Multichannel parametrization of pi N scattering amplitudes and extraction of resonance parameters