Flue gas treatment by power-to-gas integration for methane and ammonia synthesis – Energy and environmental analysis