Electronic structure and Raman spectroscopy study of dibarium magnesium orthoborate, Ba2Mg(BO3)2