Thermodynamic modeling of particle formation and reshaping in metallic catalyst nanofilms for carbon nanotube growth