Shear failure and mechanical behavior of flawed specimens containing opening and joints