A new application of synchrotron radiation to carbon nanotubes - shape control and purification