Self-organized percolation model for stock market fluctuations