Determining the direction of a geometrical/optical reference axis in the coordinate system of a triaxial magnetometer sensor