Polymer-mediated metal and metal oxide nanoparticles: synthesis, characterization and controlled assembly