Semiconductor–semiconductor junction, formed at the boundary between a p-type and n-type semiconductor