A self-consistent global model of neutral gas depletion in pulsed helicon plasmas