Scientists have identified a process that could be used to harness methane that is now wasted by being burned off at wellheads.