A highly selective, colorimetric, and environment-sensitive optical potassium ion sensor.