Inversion algorithm for estimating particle size