Major German carmakers saw sharp quarterly sales declines in China as domestic demand weakened and competition heated up in the world’s biggest auto market. At Volkswagen, Mercedes-Benz, BMW…