A model for the thermal conductivity of YBa2Cu3O7−σ