A Novel MEMS Magnetic Field Sensor with a Torsional Pendulum Structure