Fractal Characteristics of Coal and Sandstone Failure under Different Unloading Confining Pressure Tests