The preparation of high quality heterostructure photonic crystals by using pulse anodization and their enhanced photocatalytic property