Numerical study of the effect of a charged membrane in the separation of electrically charged components