Reversible morphological transformation between polymer nanocapsules and thin films through dynamic covalent self-assembly.