Avalanches and self-organized criticality in simulations of particle piles