Electron irradiation as a method for controlling luminescence of hexagonal boron nitride