Neutral density estimation in the ASDEX upgrade divertor from deuterium emissivity measurements during detachment and shoulder formation