Polycaprolactone coating with varying thicknesses for controlled corrosion of magnesium