Impact of nuclear vibrations on van der Waals interactions and radiative heat transfer in graphene