Application of Nanomaterials in Treatment of Microbial and Viral Infections