Resonant and nonresonant multiphoton ionization of helium