Simulation and optimization of hybrid green energy systems for desalination purposes