Solid state magnetic field sensors and applications