Long-term variations of solar activity affect the earth's climatic conditions modulating the characteristics of the middle atmosphere