Cation–anion interaction directed dual-mode switchable mechanochromic luminescence