Context-dependent wiring of Sox2 regulatory networks for self-renewal of embryonic and trophoblast stem cells.