The effects of the nanostructure of mesoporous TiO2 on optical band gap energy