Finite strain, gradient elasticity, multiphasic formulation of chemo-mechanically driven phase transformations in lithium batteries