Incorporation of Ions into Nanostructured Anodic Oxides—Mechanism and Functionalities