Created common function to swap endianness, and use it for both MPU6050 and HMC5883L