Landslides, sandpiles, and self-organized criticality