Global identification, estimation and inference of structural impulse response functions in factor models: A unified framework