Ponderomotive Generation and Detection of Attosecond Free-Electron Pulse Trains.