Neural Posterior Estimation with Differentiable Simulators