Thermodynamic properties of a charged particle in non-uniform magnetic field