Comparison between solar energy and geothermal energy