Synthesis, structure, and characterization of chromo(fluoro)ionophores with cation-triggered emission based on N-methylaza-crown-ether styryl dyes.