First-order pinning interaction in type-II superconductors with Ginzburg–Landau descriptions