Composed planar Hall effect sensors with dual-mode operation