Theory of the chemical shift in aromatic heterocycles