Processing and optical properties of patternable inorganic–organic hybrid films