The temperature dependence of the LO(T) and TO(T) phonons in GaAs and InP