Tuning the formation and degradation of layer-by-layer assembled polymer hydrogel microcapsules.