Electronically conductive polymers as chemically-selective layers for membrane-based separations