Hydrogels in controlled release formulations: network design and mathematical modeling.