Theory of magnetic susceptibility in terms of atomic quantities