Effects of phase formation on electron field emission from BN films