The theory of chemical shifts in nuclear magnetic resonance I. Induced current densities