Skyrmion battery effect via inhomogeneous magnetic anisotropy