The role of AI in optimizing renewable energy systems