Fabrication and testing of a micromachined shear sensor