Latvala wins Rally GB, Loeb nears ninth title