The influence of nitrogen vacancies on the magnetic behaviour of rare-earth nitrides