Titania inverse opals for infrared optical applications