The explicit solutions to the nonlinear Dirac equation and Dirac-Klein-Gordon equation