Structure–property analysis of the Mg–TiO2 and Mg–Sn–TiO2 composites intended for biomedical application