Loeb takes final gravel WRC win of his career