Synthesis and characterization of highly organized mesoporous palladium-doped tin dioxide thin films for gas sensing