Integration of renewable energy sources