Learning fast neural network emulators for physics-based models