The Transition from Planar to Curved and Flexible Batteries