A series of lanthanide(III) metal-organic frameworks derived from a pyridyl-dicarboxylate ligand: single-molecule magnet behaviour and luminescence properties.