Nonlinear Effects in Models of the Galaxy. I. Midplane Stellar Orbits in the Presence of Three-dimensional Spiral Arms