Imaging population distribution between two coupled atomic Bose-Einstein condensates by using short laser pulses