A colorimetric turn-on optical chemosensor for Cu2+ ions and its application as solid state sensor