Optimal design of integrated process for renewable electricity generation