Developing an appropriate system for onion grading