The contour deformation method in momentum space, applied to subatomic physics