from magnesium compounds with alkali hydroxides or alkaline- earth oxides or hydroxides