added logic for calculating the angles at which principal and maximum in-plane shear stresses occur with respect to the current element configuration