What it took for Beijing to issue its first-ever smog “red alert”