Impact of carbon impurities on the confinement of high-ion-temperature discharges in the Large Helical Device