Thermodynamic description and modeling of two-way shape-memory effect in crosslinked semicrystalline polymers†