Optical detection of lead and potassium ions using a quantum-dot-based aptamer nanosensor