A Physical Approach to Simulate the Corrosion of Ceramic-Coated Magnesium Implants