The effect of irradiation on the magnetic properties of rock and synthetic samples: Implications to irradiation of extraterrestrial materials in space