Thermal behavior of metal nanoparticles in geologic materials