how is energy from the volcanoes generate electricity? ​