Photoactive coordination polymer nanoparticles for biological and device applications