Development of an electrically switched ion exchange process for selective ion separations