Optimization of injection into vapor-dominated geothermal reservoirs considering adsorption