Temperature of a metallic nanoparticle embedded in a phase change media exposed to radiation