Global Optimisation of Black-Box Functions with Generative Models in the Wasserstein Space