Differentiable FEM for Advanced Material and Process Optimization