Nuclear magnetic resonance, electron spin resonance or other spin effects or mass spectrometry