Preparation of multilayer colour-separating filters by sol-gel processing