Ammonia photolysis and the greenhouse effect in the primordial atmosphere of the earth