Synthesis and advanced structural and magnetic characterization of mesoporous transition metal-doped SnO₂ powders and films