Electrocatalytic hydrodechlorination of 2,4-dichlorophenol over palladium nanoparticles and its pH-mediated tug-of-war with hydrogen evolution