Structure/microstructure analysis of nanocrystalline and layered materials