A unified framework to quantify demographic buffering in natural populations