Ray optics for absorbing particles with application to ice crystals at near-infrared wavelengths