Temperature-dependent sound velocity in hydrodynamic equations for relativistic heavy-ion collisions