Manufacturing of a polymeric membrane with integrated porous electrode