Dynamics of femtosecond laser-induced melting and amorphization of indium phosphide