On-Chip Compensation of Stress, Temperature, and Nonlinearity in a MEMS Gyroscope