Differentiable Folding for Nearest Neighbor Model Optimization