On the attribution of the impacts of extreme weather events to anthropogenic climate change