Karl Ludwig, Pangeran Herediter Baden