Generalized Gell-Mann–Low theorem for relativistic bound states