Circulation and trajectories of vortex rings formed from tube and orifice openings