Far-field optical classification of subwavelength objects