MBE growth and in situ electrical characterization of metal/semiconductor structures