Structure and properties of mesoporous silica films for optical applications