Scotland and Northern Ireland secured qualification for the Netball World Cup after a three-day event in East Kilbride.