Ab initio investigation of magnetic ordering in the double perovskite Sr2NiWO6