First-principles rationalization of self-reduction and lanthanide defect levels in SrB4O7<