Regiospecific hydrogenation of quinolines and indoles in the heterocyclic ring