The Si substrate 101 and a counter electrode 104 formed from a material such as Pt and Au were immersed in an HF aqueous solution 105 to perform the anodic oxidation using the counter electrode as the cathode and the substrate electrode 103 as the anode.