Directly patternable high refractive index ferroelectric sol-gel resist