A highly selective colorimetric chemosensor for cyanide and sulfide in aqueous solution: experimental and theoretical studies