Effects of damage on resistivity response and volatility of water-bearing coal