Analysis of rock structure stability in coal mines