Effect of phenol end functional switching segments on the shape memory properties of epoxy‐cyanate ester system