Role of drainage conditions in deformation and fracture of porous rocks under triaxial compression in the laboratory