Optimization And Stability Analysis Of Offshore Hybrid Renewable Energy Systems