Decomposition into Separable and Purely Inseparable Parts