Mechanical behavior and damage-induced permeability evolution of mudstone and gypsum caprocks