Chemical and thermomechanical tailoring of the shape memory effect in poly(epsilon-caprolactone)-based systems