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