Effects of lattice constraint on structures and electronic properties of BAlN and BGaN alloys: A first-principles study