Uncovering the Cu-driven electrochemical mechanism of transition metal chalcogenides based electrodes