Selective hydrogenation of hydrocarbons