Moved functions and variables about totalStress to the class Defect

Variables:
Stress totalStress
vector<Stress> totalStresses
Functions:
void setTotalStress(Stress s)
Stress getTotalStress() const
Stress getTotalStressAtIteration(int i) const
All classes that inherit Defect will obviously inherit these protected data members and public functions.