Text this: Structural metamorphosis and photophysical properties of thermostable nano- and microcrystalline lanthanide polymer with flexible coordination chains