Schottky barrier engineering in metal/semiconductor structures for high thermal stability