Dynamic simulation and 3E optimization with an environmental assessment of an efficient energy plant for generation of fresh water by humidification-dehumidification technology and green power and H2