Diagnosing the spores of tomato fungal diseases using microscopic image processing and machine learning