Magnetic field measurements with a novel surface micromachined magnetic-field sensor