X-ray and optical characterization of multilayer semiconductor waveguides