Shortwave infrared otoscopy for diagnosis of middle ear effusions: a machine-learning-based approach