The nonlinear Klein–Gordon equation coupled with the Maxwell equations