Direct imaging of an inhomogeneous electric current distribution using the trajectory of magnetic half-skyrmions