German carmaker is struggling with weaker demand in Europe and China