Avalanche models and magnetospheric activity