Kinematic distances of pre-main-sequence stars in the Lupus star-forming region