The visual detection of anesthetics in fish based on an inverse opal photonic crystal sensor