An electrical matlab model of plasma electrolytic oxidation