The fundraising comes as the company expands battery manufacturing capacity around China and in Germany.