Visual sensors of an inverse opal hydrogel for the colorimetric detection of glucose