Development of an anion/cation permeable free-standing membrane based on electrochemical switching of polypyrrole