Optical coatings produced by application to, or surface treatment of, optical elements