Hydrogen production using mesoporous titanium dioxide