Plummeting battery costs and expanding charging networks have driven an industry shift that analysts say is now irreversible.