Photocurable silica hybrid organic–inorganic films for photonic applications