Surface chemistry mediated assembly of polymer-grafted nanorods in solution and polymer matrices