Wave-Vector-Dependent Dielectric Function for Si, Ge, GaAs, and ZnSe