Calculation of gain at X-ray wavelengths resulting from optical pumping of helium-like ions