Directed Biofabrication of Nanoparticles through Regulating Extracellular Electron Transfer.