Phase Transitions in Bak-Sneppen avalanches and in a continuum percolation model by A. Gillett