Development of an equation of state for nematic liquid crystals