Controlled synthesis and phase transformation of ferrous nanowires inside carbon nanotubes