Longitudinal impedance and coherent synchrotron radiation models for ThomX storage ring