Revealing the failure mechanism of transition-metal chalcogenides towards the copper current collector in secondary batteries