Modification of Tao–Mason equation of state to ionic liquids