Correlating drug release with microstructure of hydrogel-based delivery systems