The company is developing solid-state batteries, which promise to help lower the cost of electric vehicles. But achieving that goal will be expensive for QuantumScape.