Charge exchange in the solar wind-comet interaction