Text this: Modeling and optimization of combined heating, power, and gas production system based on renewable energies