Shear fracture in sandstone under plane-strain compression