Silver Nanoparticles in Ammonia Sensing and Photovoltaics