A fully-analog high performances automatic portable system for phase measurement of electrical and optical signals