Electronic structure and molecular topology of boron and aluminum suboxides