Electrical switch for smart pH self-adjusting system based on silver nanowire/polyaniline nanocomposite film.