Using catastrophe theory to model wildfire behavior and control