Modifications of the electronic properties of Pt catalysts induced by sulfur adsorption or coke deposition