Surface plasmon as a probe for melting of silver nanoparticles