A unified framework for dataset shift diagnostics