Preparation of hydrocarbons from hydrocarbons containing the same number of carbon atoms by hydrogenation of non-aromatic carbon-to-carbon double bonds