Decomposing portfolio value-at-risk: a general analysis