Synthesis of silver nanowires and their applications in the electrochemical detection of halide