An optical method to characterize streamer variability and streamer-to-flame transition for radio-frequency corona discharges