On the annual and semiannual variations of the thermospheric density