Controlled hydrogel formation in the internal compartment of giant unilamellar vesicles