A nonempirical model of the gas-cell atomic frequency standard