Nanostructured ultraviolet resistant polymer coatings