Fracture prediction of rocks under mode I and mode II loading using the generalized maximum tangential strain criterion