Topology of the ground state of two interacting Bose-Einstein condensates