Polymerized colloidal crystal hydrogel films as intelligent chemical sensing materials