Measuring adhesion and friction in mems