A quantitative model for the time-size distribution of eruptions