Colorimetric Detection of Cu2+ and Fluorescent Detection of PO43– and S2– by a Multifunctional Chemosensor