Bound-state solutions of the Maxwell-Dirac and the Klein-Gordon-Dirac systems