Intermolecular approach to metal ion indicators based on polymer phase transitions coupled to fluorescence resonance energy transfer.