Transport properties in semiconductor superlattices with mobile defects: a thermodynamical model