Modeling of the protective coatings formation mechanism by micro-arc oxidation