Avalanche models and geomagnetic activity