Text this: Grating Theory Approach to Optics of Nanocomposites