Formulation of different shapes of nanoparticles and their incorporation into polymers