Synchrotron x-ray microdiffraction diagnostics of multilayer optoelectronic devices