Elucidating the importance of sediment avalanches in scour at obstacles