The equations of motion of an extended body in general relativity