A unified framework to identify demographic buffering in natural populations