Electrochemically controlled transport in a dual conducting polymer membrane system