Improving dielectric performance in anodic aluminum oxide via detection and passivation of defect states