Method for optimizing the protecting pillars parameters in underground coal mining