Theoretical study of the magnetic properties of water molecule in non-uniform magnetic field