A Wasserstein approach to the numerical solution of the one-dimensional Cahn-Hilliard equation