Former PM Imran Khan’s nephew, two retired army officers among those sentenced over attacks on military sites in 2023.