Synthesis of Ag/polyaniline nanocomposite via an in situ photo-redox mechanism