Working memory shapes information sampling and attention allocation across development