A Linearized Method to Measure Dynamic Friction of Microdevices