A phenomenological model for the anodization of titanium