The Stochastic Approach in Analysis—the Structures with Vacancies and Impurities