Thermodynamic Bethe ansatz for RSOS scattering theories