Vacuum of the quantum Yang-Mills theory and magnetostatics