Macroscopic oscillations between two weakly coupled Bose-Einstein condensates