A unified framework to estimate the origins of atmospheric moisture and heat using Lagrangian models