Performance optimization of MEMS gyroscopes and their shock survivability