Nonperturbative theory of the resonant interaction of atoms with laser fields