Magnetization of beryllium oxide in the presence of nonmagnetic impurities: Boron, carbon, and nitrogen