Growth mechanism and photoelectric properties of a silver nanowire network prepared by solid state ionics method