Optimizing the design of 3D-pillar microbatteries using finite element modelling