Ford will cut more than 1,000 jobs in Germany as it switches its business in the region to selling only electric cars.