Quantum mechanics of charged-particle beam transport through magnetic lenses.