Measurement of the work function of some metals using internal voltage in MIM structures