Catalytic and Charge Transfer Properties of Transition Metal Dichalcogenides Arising from Electrochemical Pretreatment