Phase transitions at the nanoscale: freezing/melting and structural changes in nanoparticles