Force on a wire segment through a magnetic field