Divertor, scrape-off layer and pedestal particle dynamics in the ELM cycle on ASDEX Upgrade