Protein-assisted nanoparticle synthesis