Sol-gel coating films for optical and electronic application