Transient dynamics of terrestrial carbon storage: mathematical foundation and its applications