Effective theory for the two-nucleon system