Thickness control and defects in oriented mesoporous silica films