GeoThermag: a geothermal magnetic refrigerator