Likelihood-free inference with emulator networks