Tuning the photoluminescence of lanthanide metal–organic framework nanospheres through ligand-induced phase transition towards sensing | Synapse