Local orthogonal rectification: Deriving natural coordinates to study flows relative to manifolds