Dimensional crossover of thermal conductance in graphene nanoribbons: a first-principles approach