What causes the northerly turning error in a magnetic compass?