BOSE-EINSTEIN CONDENSATE IN A DOUBLE-WELL POTENTIAL AS AN OPEN QUANTUM SYSTEM