A sequential approach to the characteristic function and the core in games with externalities