Optical colorimetric sensor arrays for chemical and biological analysis