electrochemically-induced amorphous-to-crystalline transformation