Ecological environment as a factor in the quality of life of the population