Single-shot electron-beam bunch length measurements