A model of nitric oxide in the lower thermosphere