Acoustic Emission Response Mechanism of Hydraulic Fracturing in Different Coal and Rock: A Laboratory Study