Imidazole and triazole head group-containing polydiacetylenes for colorimetric monitoring of pH and detecting HCl gas