Recycling valuable silver from waste generated in diverse nanotemplate reactions