X-ray scattering from semiconductors