Influential factors and control of water inrush in a coal seam as the main aquifer