Low temperature sol-gel metal oxide and fluoride layer stacks for optical applications