BMW announces plan to invest $1.7 billion in electric vehicles