A two-axis magnetometer using a single magnetic tunnel junction