The influence of surface functionality on the activity of carbon-supported catalysts