Band gap and electronic structure of MgSiN2