Harnessing geothermal energy from volcanoes