Nuclear spin polarized alkali beams (Na, Li): Optical pumping with electro-optically modulated laser beam