Financial crises: Uncovering self-organized patterns and predicting stock markets instability