Theoretical calculations and experimental determinations of chemical shielding and electric field gradient tensors in solid state NMR