Room-temperature ferromagnetism in boron-doped oxides: a combined first-principle and experimental study