Electrochemical formation of a cesium–tin alloy in an amide-type ionic liquid