Solar wind charge exchange in cometary atmospheres