Least Squares Fitting of a Cardiac Hyperelasticity Model Using an Automatically Derived Adjoint Equation