Local-structure effects on 31P NMR chemical shift tensors in solid state.