Formation Mechanism of Porous Anodic Aluminium and Titanium Oxides