Rational design of a minimal size sensor array for metal ion detection.