Nucleation and reshaping thermodynamics of Ni as catalyst of carbon nanotubes