Colorimetric and fluorescent pH and Cu2+ probes induced by photoisomerization of a maleonitrile-based Salen ligand.