The role of external electric fields in membrane-based separation processes: a molecular dynamics study