A simple method for determining the size of a sphere from the extrema of the scattering intensity. I. Dielectric sphere