Polymer with pendant diazo-coupling functionality for colorimetric detection of nitrates