Theoretical study of macrostep stability under temperature gradient