Structural evolution of cobalt oxide–tungsten oxide nanowire heterostructures for photocatalysis