Identification and estimation of econometric models with group interactions, contextual factors and fixed effects