On-demand refractive index for interference optical coatings