Determination of the size distribution and percentage of broken kernels of rice using flatbed scanning and image analysis