First-principles calculations for Dzyaloshinskii–Moriya interaction