Carbon dioxide based power generation in renewable energy systems