Ab initio supercell calculations on nitrogen-vacancy center in diamond: Electronic structure and hyperfine tensors