Contact resistance at 2D metal/semiconductor heterostructures