A hierarchically porous anatase TiO2 coated-WO3 2D IO bilayer film and its photochromic properties.