Preparation and characterization of a pectin membrane-based optical pH sensor for fish freshness monitoring