A comparative study on the photocatalytic activities of microporous and nanoporous TiO2 layers prepared by electrochemical anodization