Synthesis of thin film titania photonic crystals through a dip-infiltrating sol–gel process