oscilloscope working principle