Two-component Bose–Einstein condensates and their stability