Monte Carlo wavefunction approach to the dissipative quantum-phase dynamics of two-component Bose-Einstein condensates