Text this: Application of transfer matrix and transfer function analysis to grating-type dielectric laser accelerators: Ponderomotive focusing of electrons