Band structure engineering of boron–oxygen-based materials for efficient charge separation