Physics and Chemistry of the Upper Atmosphere