Focusing of charged particles