First-principles thermal equation of state of tungsten carbide