Cyclic variations of gas components in tree-ring chronologies as response to climatic cycles