Calculate azimuth (compass direction) based on accelerometer and magnetometer readings.