How does gas generate electricity?