Charge-dependent nucleon–nucleon potential from chiral effective field theory