The effect of anodization parameters on the formation of nanoporous TiO2 layers and their photocatalytic activities