Controlled generation of luminescent centers in hexagonal boron nitride by irradiation engineering