Selective fluorescence detection of divalent and trivalent metal ions with functionalized lipid membranes.