A "turn-on" lanthanide complex chemosensor for recognition of lead(ii) based on the formation of nanoparticles.