Task-optimal data-driven surrogate models for eNMPC via differentiable simulation and optimization