The role of the Fermi level pinning in gate tunable graphene-semiconductor junctions