digital oscilloscope working principle