BMW investing $1.7B in S Carolina as automaker shifts to EVs