Ultrafast voltage sampling using single-electron wavepackets