A shortage of skilled workers in Germany has prompted BMW to open a factory specially equipped to encourage workers to stay longer.