New way to extract magnesium from seawater