Pion-nucleon scattering in chiral perturbation theory (I): Isospin-symmetric case