Smart hydrogel-based optical fiber SPR sensor for pH measurements