Monitoring Ag nanoparticles growth in undoped and Er3+-doped glasses by in-situ UV–Vis spectroscopy and its luminescent properties