Localization of eigenvalues for non-self-adjoint Dirac and Klein–Gordon operators