A comparative study of inverted-opal titania photonic crystals made from polymer and silica colloidal crystal templates