Engineers find neat way to turn waste carbon dioxide into useful material