Relativistic basis of magnetism