Erosion of carbon due to bombardment with energetic ions at temperatures up to 2000 K