A finite deformation stress-dependent chemical potential and its applications to lithium ion batteries