Solitary-wave solutions of the Maxwell-Dirac and the Klein-Gordon-Dirac systems