A strain of bacteria is created that can produce a synthetic fuel almost identical to conventional diesel, a study suggests.