Lie Algebraic Methods in Charged Particle Optics