Fix edge case for bond determination.
Returns all slabs with broken bonds < max_broken_bonds ranked by # of broken
bonds.