Estimation of the modulation of friction from the mechanical impedance variations