Large-scale MD simulations for studying the interlayer structure in cationic and anionic clays and nanocomposite materials