Control model and optimization study of temperature distribution applied in thermite plugging and abandonment technology