German carmakers embark on historic job cuts as Chinese rivals flood market