magnesium and fluorine reaction