BERLIN—Mercedes-Benz expects to have factories producing exclusively electric vehicles (EVs) by the second half of the decade but will steer clear of building EV-only plants, instead keeping production lines flexible in line with market demand. The carmaker foresees some of its production lines within factories switching fully to electric even sooner, production chief Joerg Burzer…