Optical observations of the thermosphere