Add the elastic energy computation to LinearElastic material, as a state variable
This MR adds the computation of the elastic energy for LinearElastic materials, as a state variable. It is basically the same as what was done in the MohrCoulomb material.