In silico design of magnesium implants: Macroscopic modeling.