DFT study of magneto-volume effects in iron and cobalt nitrides