Resonance phase shifts from lattice QCD : the pion-nucleon channel