Mass, charge, and energy separation by selective acceleration with a traveling potential hill