Fluid–solid equilibria of flexible and linear rigid tangent chains from Wertheim’s thermodynamic perturbation theory