Percolation threshold potentials at quasi-static electrochemical switching of polyaniline films