Recipes for bolometric corrections and Gaia luminosities of B-type stars: Application to an asteroseismic sample