Determination of the Cs distribution along a line of sight by the Zeeman splitting in an inhomogeneous magnetic field