how atmospheric layers play role in regulating our environment