Model dielectric function for semiconductors