Automated spin-assisted layer-by-layer assembly of nanocomposites.