These atoms and some others behaves, basically, as small magnets with a so called nuclear magnetic momentum quantified by a quantic value: the spin. (
ref1[1],
ref2[2]).
Notes & cross-references:
D. Canet
La RMN concepts et méthodes inter éditions 1991
J.P Girault
Résonance Magnétique Nucléaire : Evolution instrumentale et analyse de structure ; Le technoscope de biofutur n°38 sept 90