Phase Separation and Collective Excitations of Two-Component Bose-Einstein Condensates in Traps