Consistency of residence time calculations based on Lagrangian trajectory analysis in ocean modeling