Synthesis of ammonia directly from wet air at intermediate temperature