The Generalized Factor Model: Identification and Estimation