Production of electricity from renewable sources