Adjoint-state finite element equations for parameter estimation.