Solidification of gold nanoparticles in carbon nanotubes.