magnesium oxide mechanism of action