In situ fabrication of metal nanoparticle embedded polymer films optical limiting and bactericidal applications