State-dependent atomic excitation by multiphoton pulses propagating along two spatial modes