Generation and annihilation of boron–oxygen-related recombination centers in compensated p- and n-type silicon