Facile synthesis of nanostructures