Corrosion assessment and enhanced biocompatibility analysis of biodegradable magnesium-based alloys