A unified framework for performance and risk attribution