Rigorous analysis of the spectral sizing of single particles based on light scattering patterns