Encapsulation and release mechanisms in coordination polymer nanoparticles.