Maintenance of the activity of mono-dispersed Au and Ag nano-particles embedded in agar gel for ion-sensing and antimicrobial applications