A generalized strain energy density criterion for mixed mode fracture analysis in brittle and quasi-brittle materials