How is the work done by a force measured when