Analysis of rapid melting and resolidification in femtosecond laser interaction with nanoparticle