The extended and generalized Shapley value: Simultaneous consideration of coalitional externalities and coalitional structure