A Measurement method of the ideal I-V characteristics of diodes up to the built-in voltage limit