Microstructure of BAlN and InGaN epilayers for optoelectronic applications