Structure and superconductivity of ternary chalcogenides CuxMo6S8 prepared by topotactic electrode reactions