X-ray scattering studies of nanostructured patterned arrays