Microscopic investigations of advanced thin films for photonics