Controlling the optical properties of nanostructured oxide-based polymer films