Determination of the dispersive elastic constants of the cubic crystals Ge, Si, GaAs, and InSb