Optimizing Grid-Integrated Renewable Systems for Cost-Effective Electricity and Hydrogen Supply | Synapse