A CMOS-compatible 2-D vertical Hall magnetic-field sensor using active carrier confinement and post-process micromachining