Prevention of pollution from coal mine at the planning stage