Hall-based magnetic sensing