Dielectric coatings for infrared detectors