Characterization of B-doped polycrystalline diamond films using thermally stimulated luminescence