Generalized Many-Body Expanded Full Configuration Interaction Theory.