Nucleon magnetic moments and magnetic properties of the vacuum in QCD