The thermal catastrophe model of substorms