Formation and degradation of layer-by-layer-assembled polyelectrolyte polyrotaxane capsules.