Generalized entanglement as a framework for complex quantum systems: purity versus delocalization measures