Alignment of nanoparticles in polymer matrices