A resonance Rayleigh scattering sensor for detection of Pb2+ ions via cleavage-induced G-wire formation.