Ordered mesoporous NiO with thin pore walls and its enhanced sensing performance for formaldehyde.