Highly flexible and energy-efficient process for converting coke-oven gas and pulverized coke into methanol and ammonia using chemical looping technology