Optimizing autoinjector devices using physics-based simulations and Gaussian processes.