Crystallographic alignment of nanoparticles during self-assembly