Closed-Loop Controlled Photopolymerization of Hydrogels.