Synthesis of nanostructures from amorphous and crystalline phases