Pressure dependence of the dielectric and optical properties of wide-gap semiconductors