Formation mechanism of HA-based coatings by micro-arc oxidation