How is oil used to generate electricity