Synthesis of highly dispersed silver doped g-C3N4 nanocomposites with enhanced visible-light photocatalytic activity