Nuclear forces from chiral Lagrangians using the method of unitary transformation II: The two-nucleon system