An intelligent control framework for robot-aided resistance training using hybrid system modeling and impedance estimation