Shear Resistance of Rock Joint under Nonuniform Normal Stress