Metal semiconductor junctions