Bacterial surface-layer proteins for electrochemical nanofabrication