Visual multi-triggered sensor based on inverse opal hydrogel