Models for the Gravitational Field of the Galactic Bar: An Application to Stellar Orbits in the Galactic Plane and Orbits of Some Globular Clusters