Assessing the degradation behavior of magnesium alloys using electrochemical methods