Synthesis of Ag-doped ZIF-8 photocatalyst with excellent performance for dye degradation and antibacterial activity