Practical stability limits of magnesium electrolytes