His ammonia process fed the world – but he also pioneered chemical weapons