First-principles calculations of spin-orbit effects and NMR in Sr2RuO4