Thermodynamic and metastable colorimetric states of polydiacetylenes composite films and their applications for deciphering secret codes and sensing temperature