Metal-semiconductor junction