Novel bi-layer coatings for the protection and functionalisation of magnesium-based medical alloys