A variational multi-phase model for phase-transforming elasto-plastic materials | Synapse