The dynamics of spectroscopic transitions : illustrated by magnetic resonance and laser effects