Compounds containing only magnesium as metal