Added alternative piece of code for making the conversion from dS/dE -> dP/dF (for StructuralMaterial) on index form. New code is only preliminary and seems to be a bit slower but debugging is much simpler.