Response of inverse-opal hydrogels to alcohols