On the electronic structure of the semiconducting compounds Mg3Bi2 and Mg3Sb2