Flux-gate like 2D magnetometer based on a single magnetic tunnel junction