Temperature measurement and melting determination in the laser-heated diamond-anvil cell