Automated quantification of defective maize kernels by means of Multivariate Image Analysis