First principle study of MF2 (M = Mg, Ca, Sr, Ba, Ra) compounds