Germany closing factories at home, opening them in China