A model to analyse deformations and stresses in structural batteries due to electrode expansions