Investigating or analyzing materials by the use of nuclear magnetic resonance, electron paramagnetic resonance or other spin effects