Chemistry for electron-induced nanofabrication