Colorimetric sensor arrays for the detection of aqueous and gaseous analytes