A simulation method to analyze chemo‐mechanical behavior of swelling‐induced shape‐memory polymer in response to solvent