Green synthesis, characterization of silvernanoparticles for photocatalytic dye degradation, waste water treatment and biological applications