Mercedes is developing solid-state batteries with the aim of having the technology ready by the end of the decade.