Researchers in Scotland have developed a more sustainable way of manufacturing nylon they say could be revolutionary.