Controlling water temperature for efficient coal/gangue recognition