Rearrangements of azabiphenylenes: the impact of nitrogen number and position