Improving the efficiency of passivity compensation schemes via adaptive sampling