Optical detection of the percolation threshold of nanoscale silver coatings with optical fiber gratings