Mid-wave and long-wave infrared gradient-index optics: metrology, design, and athermalization