Solid-state electrochemistry of metal cyanides