Adding the missing third and fourth dimensions to trajectory analysis in carbonate systems