Diagnostics for Electron Pulse Trains at SwissFEL Obtained by Energy Modulation in a Laser-Driven Dielectric Structure