Surrogate-assisted inversion for large-scale history matching