One-Pot Route to Produce Hierarchically Porous Titania Thin Films by Controlled Self-Assembly, Swelling, and Phase Separation