A luminescent Cd(II) coordination polymer as a fluorescence-responsive sensor for enhancement sensing of Al3+ and Cr3+ ions and quenching detection of chromium(VI) oxyanions