Determination of cavity-growth rates from cavity-size distributions