Characterization of nanograined powder samples using the Rietveld method applied to electron diffraction ring patterns