Reversible uptake of hydrogen by hydrocarbons chemisorbed on palladium