Ion selectivity of crown ethers investigated by UV and IR spectroscopy in a cold ion trap.