A near-infrared optoelectronic approach to detection of road conditions