Coupling of Chemical Cross-linking, Swelling, and Phase Separation in Microencapsulation