Insight into the premelting and melting processes of metal nanoparticles through capacitance measurements