Energy consumption for data distribution in content delivery networks