Single-molecule studies of eukaryotic and prokaryotic transcription