Magnetic defects in an imbalanced mixture of two Bose-Einstein condensates