Liquefaction and impurity separation of oxygen-bearing coal-bed methane