Differentiable Optimization of Similarity Scores Between Models and Brains