Landscape memory as a solution of the ecological stability of the territory after mining