Stability of Two-Component Bose-Einstein Condensates in Traps