Likelihood-free inference with an improved cross-entropy estimator