Synthesis and characterization of silver nanoparticles and nanocomposites and their applications in biomedical and textile technology