Quasispin model for macroscopic quantum tunneling between two coupled Bose-Einstein condensates