Protein conformation driven biomimetic synthesis of semiconductor nanoparticles