A model for the temperature dependence of photoluminescence from self-assembled quantum dots