Excimer formation in crystalline and nanostructured coordination polymers.