Design and Experimental Validation of a Hardware-In-the-Loop Simulator for Mechanisms with Link Flexibility