Three-dimensional magnetic field sensor in IBM 0.18μm CMOS technology